//
//  BMOBFindRequest.m
//  MotherLover
//
//  Created by lanou on 16/1/8.
//  Copyright © 2016年 zj. All rights reserved.
//

#import "BMOBFindRequest.h"

@implementation BMOBFindRequest




+(NSArray*)requestPosting:(NSString*)className number:(NSInteger)limit skip:(NSInteger)skip{
   __block NSArray *postArray = nil;
    BmobQuery *bquery = [BmobQuery queryWithClassName:@"Posts"];
    bquery.limit = limit;
    bquery.skip = skip;
    [bquery findObjectsInBackgroundWithBlock:^(NSArray *array, NSError *error) {
        postArray = [NSArray  arrayWithArray:array];
       
      }];
     return postArray;
    }
@end
